﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="SaglayiciIslemleri.aspx.cs" Inherits="BeniBastanYaratProject.Yonetim.SaglayiciIslemleri" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 164px;
        }
    </style>
    <script src="../js/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">


        $(document).ready(function () {


            $('#yenisaglayicibutton').click(function () {

                $('#yenisaglayiciform').slideToggle('normal', function () {
                });

            });
            $('#yenisaglayiciform').slideToggle(0);
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Main_CenterContent" runat="server">
    <div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="SaglayiciID"
            DataSourceID="SqlDataSource1" CellPadding="4" ForeColor="#333333" 
            GridLines="None" onrowcancelingedit="GridView1_RowCancelingEdit" 
            onrowdeleting="GridView1_RowDeleting" onrowediting="GridView1_RowEditing" 
            onrowupdating="GridView1_RowUpdating">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:TemplateField HeaderText="Firma Ad&#305;">
                    <ItemTemplate>
                        <%# Eval("SaglayiciFirmaAdi") %></ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <Columns>
                <asp:TemplateField HeaderText="Firma Yetkilisi">
                    <ItemTemplate>
                        <%# Eval ("SaglayiciFirmaYetkili") %>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <Columns>
                <asp:TemplateField HeaderText="Firma Eposta Adresi">
                    <ItemTemplate>
                        <%# Eval ("SaglayiciFirmaEposta") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:CommandField ShowDeleteButton="true" DeleteText="Sil" />
            </Columns>
            <Columns>
            <asp:TemplateField><ItemTemplate>
                <a href="SaglayiciDuzenle.aspx?saglayiciid=<%# Eval("SaglayiciID") %>">Düzenle</a></ItemTemplate></asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:BeniBastanYaratDBConnectionString %>"
            SelectCommand="SELECT * FROM [Saglayicilar]"></asp:SqlDataSource>
        <span id="yenisaglayicibutton" style="font-weight: bold; padding: 5px; border: 1px solid #CCCCCC;
            cursor: pointer">
            <br />
            Yeni Adres Ekle</span>
        <div id="yenisaglayiciform">
            <table class="style1">
                <tr>
                    <td class="style2">
                        Sa&#287;lay&#305;c&#305; Firma Ad&#305;
                    </td>
                    <td>
                        <asp:TextBox ID="txtSFirmaAdi" runat="server" Width="265px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        Sa&#287;lay&#305;c&#305; Firma Adres
                    </td>
                    <td>
                        <asp:TextBox ID="txtSFirmaAdres" runat="server" Width="265px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        Sa&#287;lay&#305;c&#305; Firma Yetkilisi
                    </td>
                    <td>
                        <asp:TextBox ID="txtSFirmaYetkli" runat="server" Width="265px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        Sa&#287;lay&#305;c&#305; Firma Telefon
                    </td>
                    <td>
                        <asp:TextBox ID="txtSFirmaTel" runat="server" Width="265px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        Sa&#287;lay&#305;c&#305; Firma Telefon 2
                    </td>
                    <td>
                        <asp:TextBox ID="txtSFirmaTel2" runat="server" Width="265px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        Sa&#287;lay&#305;c&#305; Firma Telefon 3
                    </td>
                    <td>
                        <asp:TextBox ID="txtSFirmaTel3" runat="server" Width="265px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        Sa&#287;lay&#305;c&#305; Firma Fax
                    </td>
                    <td>
                        <asp:TextBox ID="txtSFirmaFax" runat="server" Width="265px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        Sa&#287;lay&#305;c&#305; Firma Eposta
                    </td>
                    <td>
                        <asp:TextBox ID="txtSFirmaEposta" runat="server" Width="265px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        Sa&#287;lay&#305;c&#305; Firma Not
                    </td>
                    <td>
                        <asp:TextBox ID="txtSFirmaNot" runat="server" Width="265px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        &nbsp;
                    </td>
                    <td>
                        <asp:Button ID="btnKaydet" runat="server" Text="Yeni Firma Kaydet" Width="244px"
                            OnClick="Button1_Click1" />
                    </td>
                </tr>
            </table>
        </div>
        <p>
            &nbsp;</p>
    </div>
</asp:Content>
